import request from '@/utils/request'

// 查询检验单缺陷记录列表
export function listQcDefectRecord(query) {
  return request({
    url: '/ldzl-qc/qc/record/selectQcDefectRecordList',
    method: 'post',
    params: query
  })
}

// 新增检验单缺陷记录
export function addQcDefectRecord(data) {
  return request({
    url: '/ldzl-qc/qc/record/insertQcDefectRecord',
    method: 'post',
    data: data
  })
}

// 修改检验单缺陷记录
export function updateQcDefectRecord(data) {
  return request({
    url: '/ldzl-qc/qc/record/updateQcDefectRecord',
    method: 'post',
    data: data
  })
}

// 删除检验单缺陷记录
export function delQcDefectRecord(ids) {
  return request({
    url: '/ldzl-qc/qc/record/deleteQcDefectRecord?ids=' + ids.join(','),
    method: 'post'
  })
}

// 删除单个检验单缺陷记录
export function delQcDefectRecordById(recordId) {
  return request({
    url: '/ldzl-qc/qc/record/deleteQcDefectRecordByRecordId',
    method: 'post',
    data: recordId
  })
}



















































